/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package others;

import java.io.Serializable;

/**
 *
 * @author Dingo
 */
public class User implements Serializable {
    
    private String login;
    private String pass;
    private int permition;//0 - niezalogowany, 1 - user, 5 - super admin
    public static int PERM_UNLOGGED = 0;
    public static int PERM_USER = 1;
    public static int PERM_ADMIN = 3;
    public static int PERM_SUPER_ADMIN = 5;

    public User() {
    }

    public User(String login, String pass, int permition) {
        this.login = login;
        this.pass = pass;
        this.permition = permition;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public int getPermition() {
        return permition;
    }

    public void setPermition(int permition) {
        this.permition = permition;
    }
}
